package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.EquipmentFailureDao;
import com.infoauto.opc.gateway.dao.SprayDao;
import com.infoauto.opc.gateway.model.gtm4.EquipmentFailure;
import com.infoauto.opc.gateway.model.gtm4.Spray;
import com.infoauto.opc.gateway.service.EquipmentFailureService;
import com.infoauto.opc.gateway.service.SprayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//设备故障
@Service
public class EquipmentFailureServiceImpl implements EquipmentFailureService {
    @Autowired
    private EquipmentFailureDao dao;

    @Override
    public int insert(EquipmentFailure equipmentFailure) {
        return dao.insert(equipmentFailure);
    }

    @Override
    public int update(EquipmentFailure equipmentFailure) {
        return dao.update(equipmentFailure);
    }

    @Override
    public List<EquipmentFailure> selectByProducTionTimeAndShift(String productionTime, Integer shift) {
        return dao.selectByProducTionTimeAndShift(productionTime,shift);
    }

    @Override
    public EquipmentFailure select(String productionTime, Integer shift, Integer sn) {
        return dao.select(productionTime,shift,sn);
    }

    @Override
    public EquipmentFailure selectById(String id) {
        return dao.selectById(id);
    }
}
